package org.mspring.mlog.web.module.admin.frame;

import javax.servlet.http.HttpSession;
import org.mspring.platform.security.SecurityKeys;
import org.mspring.platform.web.freemarker.widget.stereotype.Action;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Gao Youbo
 * @since 2012-7-16
 */
@Action
@RequestMapping("/admin")
public class Admin_TopWidget {

    @RequestMapping(value = {"/top"})
    public String execute(Model model, HttpSession session) {
        model.addAttribute("currentUser", session.getAttribute(SecurityKeys.CURRENT_USER));
        return "/admin/frame/top";
    }
}
